import request from '@/utils/request'

export function getMyPaperList(data) {
  return request({
    url: '/construction/UserGetRelateConstruction',
    method: 'post',
    data
  })
}

export function thesis_add(data) {
  return request({
    url: '/construction/addConstruction',
    method: 'post',
    data
  })
}

export function thesis_add2(data) {
  return request({
    url: '/construction/updateConstruction',
    method: 'post',
    data
  })
}

export function thesis_delete(constructionID) {
  return request({
    url: '/construction/DeleteConstruction',
    method: 'get',
    params: { constructionID }
  })
}

export function thesis_commit(constructionID) {
  return request({
    url: '/construction/CommitConstruction',
    method: 'get',
    params: { constructionID }
  })
}

// 院级审核
export function get_thesis_xiaoji(data) {
  return request({
    url: '/construction/SchoolUserGetConstruction',
    method: 'post',
    data
  })
}

export function thesis_pass_xiaoji(constructionID) {
  return request({
    url: '/construction/SchoolPassConstruction',
    method: 'get',
    params: { constructionID }
  })
}

export function thesis_back_xiaoji(data) {
  return request({
    url: '/construction/SchoolBackConstruction',
    method: 'post',
    data
  })
}

// 附件
export function file_add(data) {
  return request({
    url: '/construction/addConstructionfile',
    method: 'post',
    data
  })
}

export function get_file(id) {
  return request({
    url: '/construction/pageConstructionfileCondition',
    method: 'get',
    params: { id }
  })
}

export function file_delete(ID) {
  return request({
    url: '/construction/DeleteConstructionfile',
    method: 'get',
    params: { ID }
  })
}
